|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | UCS_MCLK_DESIRED_FREQUENCY_IN_KHZ 12000 |
| #define | UCS_MCLK_FLLREF_RATIO 366 |
Functions | |
| void | main (void) |
| void | NMI_ISR (void) |
Variables | |
| uint32_t | clockValue = 0 |
| uint16_t | status |
| #define UCS_MCLK_DESIRED_FREQUENCY_IN_KHZ 12000 |
Software Toggle P1.0 with ~12MHz DCO
Toggle P1.0 by xor'ing P1.0 inside of a software loop. ACLK is brought out on pin P11.0, SMCLK on P11.2, and MCLK on P11.1. PMMCOREV = 1 to support up to 12MHz clock
ACLK = REFO = ~32kHz, MCLK = SMCLK = 12MHz
MSP430F5438A
-----------------
/|\| |
| | P11.0|-->ACLK
--|RST P11.1|-->MCLK
| P11.2|-->SMCLK
| |
| P1.0|-->LED
Note: In order to run the system at up to 12MHz, VCore must be set at 1.6V or higher. This is done by invoking function SetVCore()
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 70 of file ucs_ex1_DCO12MHz.c.
| #define UCS_MCLK_FLLREF_RATIO 366 |
Definition at line 77 of file ucs_ex1_DCO12MHz.c.
| void main | ( | void | ) |
Definition at line 93 of file ucs_ex1_DCO12MHz.c.
References __delay_cycles(), clockValue, UCS_MCLK_DESIRED_FREQUENCY_IN_KHZ, and UCS_MCLK_FLLREF_RATIO.
| void NMI_ISR | ( | void | ) |
Definition at line 164 of file ucs_ex1_DCO12MHz.c.
References status.
| uint32_t clockValue = 0 |
Definition at line 84 of file ucs_ex1_DCO12MHz.c.
Referenced by main().
| uint16_t status |
Definition at line 91 of file ucs_ex1_DCO12MHz.c.
Referenced by NMI_ISR().